home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 23 / develop issue 23 code / projectdrag 1.1b8.sea / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / SourceServer.h / SourceServer.h
Encoding:
C/C++ Source or Header  |  1995-07-07  |  1.6 KB  |  46 lines  |  [TEXT/MPS ]

  1. /* SourceServer.h: How to create and send an AppleEvent to SourceServer for ProjectDrag.
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #ifndef __PROJECTDRAG__
  14. #define __PROJECTDRAG__
  15.  
  16. #include <Types.h>
  17. #include <Aliases.h>
  18. #include <AppleEvents.h>
  19. #include <Files.h>
  20.  
  21. #include "PDUtilities.h"
  22.  
  23. #define kSourceServerCreator 'MPSP'
  24. #define kSourceServerType 'MPSP'
  25. #define kProjectorPathSeparator 0xBA
  26.  
  27. OSErr SourceServerCommand(AEDesc *command, CStringHandle *output, CStringHandle *diagnostic,
  28.                             AEIdleUPP idleProc, AEFilterUPP filterProc);
  29.  
  30. OSErr CreateCommand(AEDesc *command, CString commandText);
  31.  
  32. OSErr AddCommentArg(AEDesc *command, StringPtr comment);
  33. OSErr AddDirArg(AEDesc *command, short vRefNum, long folderID);
  34. OSErr AddProjectArg(AEDesc *command, StringPtr projectName);
  35. OSErr AddUserArg(AEDesc *command, StringPtr userName);
  36. OSErr AddFileNameArg(AEDesc *command, FSSpec *file);
  37. OSErr AddPStringArg(AEDesc *command, StringPtr string);
  38. OSErr AddCStringArg(AEDesc *command, CString string);
  39.  
  40. OSErr MountProject(AliasHandle projectAlias);
  41. OSErr SendCommand(AEDesc *command);
  42. OSErr MountProjectFromCKID(CKIDHandle theCKID, StringPtr projectName);
  43. OSErr MountProjectFromFolder(short vRefNum, long folderID, StringPtr projectName);
  44.  
  45. #endif
  46.